package utils

import "server/models"

func AutoMigrate() {
	Db.AutoMigrate(
		&models.User{},
		&models.UserAddress{},
		&models.Category{},
		&models.Product{},
		&models.ProductSku{},
		&models.SpecKey{},
		&models.SpecValue{},
		&models.SkuSpecRelation{},
		&models.Order{},
		&models.OrderItem{},
		&models.OrderAddress{},
		&models.OrderLog{},
		&models.OrderShipment{},
		&models.Payment{},
		&models.PaymentNotifyLog{},
		&models.Admin{},
		&models.AdminRole{},
		&models.Permission{},
		&models.SpecTemplate{},
		&models.Region{},
		&models.ShippingTemplate{},
		&models.ShippingArea{},
		&models.TemplateItem{},
		&models.ShippingSnapshot{},
	)
}
